<!DOCTYPE html	PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" xmlns:sdu="http://sduept.com/jsf/cc" 
	xmlns:s="http://sduept.security.el/func">
<h:head>
	<link href="/css/primefaces/menubase.css" rel="stylesheet"
		type="text/css" />
	<title>评价项目详情查看</title>
	<style type="text/css">
	.value {
		font-weight: bold;
	}
	.ui-datatable th.ui-state-default, .ui-datatable tfoot td.ui-state-default {
	    background: white;
	    border-color: #d9d9d9;
	}
	.baseinfo {
		border-bottom-style:double;
	}
	.ui-widget-header .ui-inputfield, .ui-widget-content .ui-inputfield {
	    font-weight: normal;
	    width: 80%;
	}

	</style>
</h:head>
 
	<h:body>
		<h:form id="inStationDetailForm">
			<s:dataTable id="plist" value="#{inspectionStationDetailController.selectLists}"    
				var="item" sortBy="#{item.projectOrder}" emptyMessage="无记录" style="heigth:98%;text-align:center" scrollable="true">
				<f:facet name="header">
					<h:outputText value="#{inspectionStationDetailController.currentInspectionStation.name}评价详细" />
				</f:facet>
				<p:columnGroup type="header">
		            <p:row>
		            	<p:column headerText="评价对象："/>
		            	<p:column headerText="#{inspectionStationDetailController.currentInspectionStation.name}" style="color:blue"/>
		                <p:column headerText="评价时间：" />
		                <p:column colspan="3" headerText="#{inspectionStationDetailController.getInspectionTimeStr()}" style="color:blue"/>
		                <p:column headerText="评价专家：" />
		                <p:column colspan="3" headerText="#{inspectionStationDetailController.getInspectionExpertsStr()}" style="color:blue;text-align:left"/>
		            </p:row>
		            <p:row  class="baseinfo">
		            	<p:column headerText="得分："/>
		            	<p:column colspan="5"/>
		            	<p:column headerText="已扣分："/>
		            	<p:column colspan="3"  id="deductpoints" headerText="#{inspectionStationDetailController.deductPointsTotal}"  style="color:red;text-align:left" />
		            </p:row>
		            <p:row>
		            	<p:column headerText="评价项目" groupRow="true" style="font-weight:bold" />
		            	<p:column headerText="检查要素及要求" groupRow="true" style="font-weight:bold" />
		            	<p:column colspan="2" headerText="评分标准" groupRow="true" style="font-weight:bold;text-align:left"/>
		            	<p:column colspan="2" headerText="发现问题描述" groupRow="true" style="font-weight:bold"/>
		            	<p:column headerText="扣分" style="font-weight:bold"/>
		            	<p:column colspan="2" headerText="备注" style="font-weight:bold"/>
		            	<p:column headerText="状态" style="font-weight:bold"/>
		            </p:row>
		        </p:columnGroup>
				<p:headerRow>
					<p:column colspan="10" style="text-align:left">
						<h:outputText value="#{item.projectNo}、#{item.projectName}" />
					</p:column>
				</p:headerRow>
				<s:column groupRow="true" style="text-align:left">
					<h:outputText value="#{item.itemNo}.#{item.itemName}" />
				</s:column>
				<s:column groupRow="true" style="text-align:left">
					<h:outputText value="#{item.inspectionNo}.#{item.inspectionName}" />
				</s:column>
				<s:column colspan="2" style="text-align:left">
					<h:outputText value="#{item.scoreNo}.#{item.scoreName}" />
				</s:column>
				<s:column colspan="2">
					<h:outputText value="#{item.problemDescription}" />
				</s:column>
				<s:column>
					<h:outputText value="#{item.deduct}" />
				</s:column>
				<s:column colspan="2">
					<h:outputText value="#{item.remaker}" />
				</s:column>
				<s:column>
					<h:outputText value="#{item.status==0?未完成:已完成}" />
				</s:column>
			</s:dataTable>
		</h:form>
	</h:body>
</html>
